<template>
  <div>
    <h2>Movie</h2>
    <button @click="getMovieList">获取电影列表</button>
    <ul>
      <li v-for="item in movieList" :key="item.tvId">{{ item.albumName }}</li>
    </ul>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "Movie",
});
</script>

<script setup lang="ts">
  import { storeToRefs } from "pinia";
  import useMovieStore from "../store/module/movie";

  const movieStore = useMovieStore();
  const {movieList} = storeToRefs(movieStore);
  const {getMovieList} = movieStore
</script>

<style  scoped lang="scss">
  
</style>